package com.zhiyou100.crm.service.impl;

import com.zhiyou100.crm.dao.CustomerCategoryDao;
import com.zhiyou100.crm.dao.impl.CustomerCategoryDaoImpl;
import com.zhiyou100.crm.service.CustomerCategoryService;
import com.zhiyou100.crm.util.CustomerCategory;

import java.util.List;

public class CustomerCategoryServiceImpl implements CustomerCategoryService {
    CustomerCategoryDao customerCategoryDao=new CustomerCategoryDaoImpl();


    @Override
    public List<CustomerCategory> queryAll() {
        return customerCategoryDao.queryAll();
    }

    @Override
    public int update(CustomerCategory category) {
        return customerCategoryDao.update(category);
    }

    @Override
    public int delete(int id) {
        return customerCategoryDao.delete(id);
    }
}
